import request from '@/utils/request'

// 查询什邡石膏（库存商品）列表
export function listFactory_shifang_gypsum_stock(query) {
  return request({
    url: '/factory_data_upload/factory_shifang_gypsum_stock/list',
    method: 'get',
    params: query
  })
}

// 查询什邡石膏（库存商品）详细
export function getFactory_shifang_gypsum_stock(commodityId) {
  return request({
    url: '/factory_data_upload/factory_shifang_gypsum_stock/' + commodityId,
    method: 'get'
  })
}

// 新增什邡石膏（库存商品）
export function addFactory_shifang_gypsum_stock(data) {
  return request({
    url: '/factory_data_upload/factory_shifang_gypsum_stock',
    method: 'post',
    data: data
  })
}

// 修改什邡石膏（库存商品）
export function updateFactory_shifang_gypsum_stock(data) {
  return request({
    url: '/factory_data_upload/factory_shifang_gypsum_stock',
    method: 'put',
    data: data
  })
}

// 删除什邡石膏（库存商品）
export function delFactory_shifang_gypsum_stock(commodityId) {
  return request({
    url: '/factory_data_upload/factory_shifang_gypsum_stock/' + commodityId,
    method: 'delete'
  })
}
